package org.example.managere.dto;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.sql.Timestamp;

/**
 * 操作数据传输对象 - 对应operationdata.operation表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OperationDto {
    private Integer id;
    
    @NotEmpty(message = "产品或功能名称不能为空")
    private String name;
    
    private String initialConventionLevel;
    
    private String conventionLevel;
    
    private String system;
    
    private String subsystem;
    
    private String fMode;
    
    private String fCause;
    
    private String flightPhase;
    
    private String fEffects;
    
    private Float singleFailureRate;
    
    private Float fmFailureRate;
    
    private String hazardRating;
    
    private String detectionMethod;
    
    private String correctiveAction;
    
    private String highFrequency;
    
    private String hfVoiceCommunicationLink;
    
    private Float hfTransceiverFailureRate;
    
    private Timestamp createTime;
    
    private Timestamp updateTime;
    
    // 手动添加getter和setter方法，确保命名正确
    public String getFMode() {
        return fMode;
    }
    
    public void setFMode(String fMode) {
        this.fMode = fMode;
    }
    
    public String getFCause() {
        return fCause;
    }
    
    public void setFCause(String fCause) {
        this.fCause = fCause;
    }
    
    public String getFEffects() {
        return fEffects;
    }
    
    public void setFEffects(String fEffects) {
        this.fEffects = fEffects;
    }
} 